package com.effvi.taoke.controller;

import java.util.Enumeration;
import java.util.Iterator;
import java.util.List;
import java.util.Map.Entry;
import java.util.Set;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sun.net.httpserver.Headers;

@Controller
public class HomeController {
	@RequestMapping({"/",""})
	public String showIndexPage(HttpServletRequest request,@RequestHeader("Host") String hostname){
		System.out.println("Host===>"+hostname);
		return "index";
	}
}
